<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
	layout:decorator="base/layout">

<head>
<title>新建用户</title>
<meta charset="utf-8" />
</head>

<body>
	<div class="container" layout:fragment="content">
		<h4>新建用户</h4>
		<hr />
		<form action="/admin/accounts" method="post">
			<div class="form-group">
				<label for="nameText">名称</label> <input type="text"
					class="form-control" id="nameText" name="name" />
			</div>
			<div class="form-group">
				<label for="passwordText">密码</label> <input type="password"
					class="form-control" id="passwordText" name="password" />
			</div>
			<div class="form-group">
				<label for="roleSelect">角色</label> <select class="form-control"
					id="roleSelect" name="role">
					<option value="1">管理员</option>
					<option value="2" selected="selected">普通用户</option>
				</select>
			</div>
			<button type="submit" class="btn btn-primary">确认</button>
			&nbsp;&nbsp;&nbsp; <a href="#"
				onclick="javascript:window.history.back();" class="btn btn-warning">取消</a>
		</form>

		<!-- ===== vendor scripts ===== -->
		<script
			th:src="@{${APP_ASSETS_HOME} + '/js/jquery/2.1.4/jquery-2.1.4.min.js'}"></script>

	</div>
</body>

</html>